<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8" http-equiv="refresh" content="3600">
    <title>首页</title>
    <link rel="stylesheet" th:href="@{/css/admin/base-v2.css}">
    <link rel="stylesheet" th:href="@{/css/wlfb-font/css/iconfont.css}">
    <link rel="stylesheet" th:href="@{/css/admin/app.css}">
    <style>
        .app-card {
            background: none;
        }

        .app-page-content {
            padding: 20px 35px;
        }

        .overview {
            display: flex;
        }

        .overview li {
            width: 25%;
            margin: 0 15px;
            height: 150px;
            background: #8693F3;
            border-radius: 4px;
            color: #fff;
            position: relative;
        }

        .overview li.b-num {
            background: #8693F3;
        }

        .overview li.t-num {
            background: #BC8DEE;
        }

        .overview li.p-num {
            background: #FFA897;
        }

        .overview li.cp-num {
            background: #89C3F8;
        }

        .overview li .num {
            font-family: 'Helvetica';
            font-size: 48px;
            font-weight: bold;
            padding-left: 30px;
            padding-top: 18px;
            height: 80px;
        }

        .overview li .lable {
            font-size: 16px;
            padding-left: 30px;
        }

        .overview li .more {
            font-size: 12px;
            width: 84px;
            height: 22px;
            line-height: 22px;
            position: absolute;
            right: 6px;
            bottom: 6px;
            background: rgba(0, 0, 0, .4);
            border-radius: 11px;
            padding-left: 10px;
            cursor: pointer;
            font-family: 'SimSun';
            opacity: 0.7;
        }

        .overview li .icon {
            font-size: 80px;
            position: absolute;
            right: 6px;
            bottom: 6px;
            color: rgba(255, 255, 255, .1);
        }

        .srcview {
            display: flex;
            flex-wrap: wrap;
        }

        .srcview li {
            width: 33.333333%;
            padding: 0 15px;
            height: 240px;
            /*float: left;*/
        }

        .srcview li .srcview-content {
            padding: 0 13px 13px 13px;
            background: #fff;
            -webkit-border-radius: 4px;
            -moz-border-radius: 4px;
            border-radius: 4px;
            position: relative;
        }

        .srcview-content .border {
            width: 2px;
            height: 12px;
            background: #2FB226;
        }

        .srcview-content .app-card {
            margin-bottom: 0;
        }

        .srcview-content .app-card-head {
            height: 40px;
            line-height: 40px;
            padding: 0;
            border-bottom: 1px solid #EFF1F5;
        }

        .srcview-content .app-card-title {
            color: #4A4A4A;
            font-size: 14px;
            font-weight: normal;
        }

        .srcview-content .app-card-body {
            display: flex;
            height: 136px;
            overflow-x: hidden;
        }

        .srcview-content .srcview-left {
            border-right: 1px dashed #E8E8EF;
            text-align: center;
            flex: 1;
        }

        .srcview-content .srcview-left b {
            font-size: 42px;
            color: #8FC1FF;
            margin-left: 10px;
            font-family: 'Helvetica';
        }

        .srcview-content .srcview-right {
            width: 160px;
        }

        .item {
            display: flex;
            padding: 4px 20px;
        }

        .item .txt {
            margin: 0 10px;
        }

        .dot {
            width: 16px;
            height: 16px;
            position: relative;
        }

        .dot1 {
            position: absolute;
            width: 16px;
            height: 16px;
            background: #999999;
            border-radius: 50%;
            opacity: .4;
        }

        .dot2 {
            position: absolute;
            width: 8px;
            height: 8px;
            background: #999999;
            border-radius: 50%;
            opacity: .8;
            top: 4px;
            left: 4px;
        }

        .online .dot1, .online .dot2 {
            background: #2FB226;
        }

        .online .num {
            color: #2FB226;
        }

        .programnum .dot1, .programnum .dot2 {
            background: #FF9800;
        }

        .programnum .num {
            color: #FF9800;
        }
    </style>
</head>

<body>

<div class="app-page">

    <div class="app-page-content">
        <div class="app-card">
            <div class="app-card-head">
                <div class="border"></div>
                <div class="app-card-title">整体情况</div>
                <div class="app-card-subtitle"><i class="icon xcfont xc-time"></i><span th:text="${currentDate}"></span></div>
            </div>
            <div class="app-card-body">
                <ul class="overview">
                    <li class="b-num">
                        <div class="icon xcfont xc-business_num"></div>
                        <div class="num"><span th:text="${companyCount}"></span></div>
                        <div class="lable">商家总数</div>
                        <div class="more">查看更多》</div>

                    </li>
                    <li class="t-num">
                        <div class="icon xcfont xc-terminal"></div>
                        <div class="num"><span th:text="${deviceCount}"></span></div>
                        <div class="lable">终端总数</div>
                        <div class="more">查看更多》</div>

                    </li>
                    <li class="p-num">
                        <div class="icon xcfont xc-program_num"></div>
                        <div class="num"><span th:text="${programCount}"></span></div>
                        <div class="lable">节目总数</div>
                        <div class="more">查看更多》</div>

                    </li>
                    <li class="cp-num">
                        <div class="icon xcfont xc-checked"></div>
                        <div class="num"><span th:text="${passProgramCount}"></span></div>
                        <div class="lable">已审批节目总数</div>
                        <div class="more">查看更多》</div>

                    </li>

                </ul>
            </div>
        </div>

        <div class="app-card">
            <div class="app-card-head">
                <div class="border"></div>
                <div class="app-card-title">资源概览</div>
                <div class="app-card-subtitle"><i class="icon xcfont xc-time"></i><span th:text="${currentDate}"></span></div>
            </div>
            <div class="app-card-body">
                <ul class="srcview">
                    <li>
                        <div class="srcview-content">
                            <div class="app-card">
                                <div class="app-card-head">
                                    <div class="border"></div>
                                    <div class="app-card-title">东北大区</div>
                                </div>
                                <div class="app-card-body">
                                    <div class="srcview-left">
                                        <div class="lable">终端总数 <b><span th:text="${northEastMap.northEastDeviceCount}"></span></b></div>

                                    </div>
                                    <div class="srcview-right">
                                        <div class="item online">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">在线</div>
                                            <div class="num"><span th:text="${northEastMap.northEastOnlineDeviceCount}"></span></div>
                                        </div>
                                        <div class="item offline">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">离线</div>
                                            <div class="num"><span th:text="${northEastMap.northEastOfflineDeviceCount}"></span></div>
                                        </div>
                                        <div class="item programnum">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">节目数</div>
                                            <div class="num"><span th:text="${northEastMap.northEastProgramCount}"></span></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="srcview-content">
                            <div class="app-card">
                                <div class="app-card-head">
                                    <div class="border"></div>
                                    <div class="app-card-title">华北大区</div>
                                </div>
                                <div class="app-card-body">
                                    <div class="srcview-left">
                                        <div class="lable">终端总数 <b><span th:text="${northChinaMap.northChinaDeviceCount}"></span></b></div>

                                    </div>
                                    <div class="srcview-right">
                                        <div class="item online">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">在线</div>
                                            <div class="num"><span th:text="${northChinaMap.northChinaOnlineDeviceCount}"></span></div>
                                        </div>
                                        <div class="item offline">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">离线</div>
                                            <div class="num"><span th:text="${northChinaMap.northChinaOfflineDeviceCount}"></span></div>
                                        </div>
                                        <div class="item programnum">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">节目数</div>
                                            <div class="num"><span th:text="${northChinaMap.northChinaProgramCount}"></span></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="srcview-content">
                            <div class="app-card">
                                <div class="app-card-head">
                                    <div class="border"></div>
                                    <div class="app-card-title">华中大区</div>
                                </div>
                                <div class="app-card-body">
                                    <div class="srcview-left">
                                        <div class="lable">终端总数 <b><span th:text="${centralChinaMap.centralChinaDeviceCount}"></span></b></div>

                                    </div>
                                    <div class="srcview-right">
                                        <div class="item online">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">在线</div>
                                            <div class="num"><span th:text="${centralChinaMap.centralChinaOnlineDeviceCount}"></span></div>
                                        </div>
                                        <div class="item offline">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">离线</div>
                                            <div class="num"><span th:text="${centralChinaMap.centralChinaOfflineDeviceCount}"></span></div>
                                        </div>
                                        <div class="item programnum">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">节目数</div>
                                            <div class="num"><span th:text="${centralChinaMap.centralChinaProgramCount}"></span></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="srcview-content">
                            <div class="app-card">
                                <div class="app-card-head">
                                    <div class="border"></div>
                                    <div class="app-card-title">华东大区</div>
                                </div>
                                <div class="app-card-body">
                                    <div class="srcview-left">
                                        <div class="lable">终端总数 <b><span th:text="${eastChinaMap.eastChinaDeviceCount}"></span></b></div>

                                    </div>
                                    <div class="srcview-right">
                                        <div class="item online">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">在线</div>
                                            <div class="num"><span th:text="${eastChinaMap.eastChinaOnlineDeviceCount}"></span></div>
                                        </div>
                                        <div class="item offline">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">离线</div>
                                            <div class="num"><span th:text="${eastChinaMap.eastChinaOfflineDeviceCount}"></span></div>
                                        </div>
                                        <div class="item programnum">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">节目数</div>
                                            <div class="num"><span th:text="${eastChinaMap.eastChinaProgramCount}"></span></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="srcview-content">
                            <div class="app-card">
                                <div class="app-card-head">
                                    <div class="border"></div>
                                    <div class="app-card-title">华南大区</div>
                                </div>
                                <div class="app-card-body">
                                    <div class="srcview-left">
                                        <div class="lable">终端总数 <b><span th:text="${southChinaMap.southChinaDeviceCount}"></span></b></div>

                                    </div>
                                    <div class="srcview-right">
                                        <div class="item online">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">在线</div>
                                            <div class="num"><span th:text="${southChinaMap.southChinaOnlineDeviceCount}"></span></div>
                                        </div>
                                        <div class="item offline">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">离线</div>
                                            <div class="num"><span th:text="${southChinaMap.southChinaOfflineDeviceCount}"></span></div>
                                        </div>
                                        <div class="item programnum">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">节目数</div>
                                            <div class="num"><span th:text="${southChinaMap.southChinaProgramCount}"></span></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="srcview-content">
                            <div class="app-card">
                                <div class="app-card-head">
                                    <div class="border"></div>
                                    <div class="app-card-title">西北大区</div>
                                </div>
                                <div class="app-card-body">
                                    <div class="srcview-left">
                                        <div class="lable">终端总数 <b><span th:text="${westNorthMap.westNorthDeviceCount}"></span></b></div>

                                    </div>
                                    <div class="srcview-right">
                                        <div class="item online">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">在线</div>
                                            <div class="num"><span th:text="${westNorthMap.westNorthOnlineDeviceCount}"></span></div>
                                        </div>
                                        <div class="item offline">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">离线</div>
                                            <div class="num"><span th:text="${westNorthMap.westNorthOfflineDeviceCount}"></span></div>
                                        </div>
                                        <div class="item programnum">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">节目数</div>
                                            <div class="num"><span th:text="${westNorthMap.westNorthProgramCount}"></span></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="srcview-content">
                            <div class="app-card">
                                <div class="app-card-head">
                                    <div class="border"></div>
                                    <div class="app-card-title">西南大区</div>
                                </div>
                                <div class="app-card-body">
                                    <div class="srcview-left">
                                        <div class="lable">终端总数 <b><span th:text="${westSouthMap.westSouthDeviceCount}"></span></b></div>

                                    </div>
                                    <div class="srcview-right">
                                        <div class="item online">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">在线</div>
                                            <div class="num"><span th:text="${westSouthMap.westSouthOnlineDeviceCount}"></span></div>
                                        </div>
                                        <div class="item offline">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">离线</div>
                                            <div class="num"><span th:text="${westSouthMap.westSouthOfflineDeviceCount}"></span></div>
                                        </div>
                                        <div class="item programnum">
                                            <div class="dot">
                                                <div class="dot1"></div>
                                                <div class="dot2"></div>
                                            </div>
                                            <div class="txt">节目数</div>
                                            <div class="num"><span th:text="${westSouthMap.westSouthProgramCount}"></span></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li>


                </ul>
            </div>
        </div>
    </div>

</div>

<script th:src="@{/lib/jquery.min.js}"></script>
<script th:src="@{/lib/layer-v3.1.1/layer/layer.js}"></script>
<script th:src="@{/js/form.js}"></script>
<script th:src="@{/js/admin/app.js}"></script>
<script>
</script>
</body>

</html>